import Vue from "vue";
import Router from "vue-router";
import HelloWorld from "@/components/HelloWorld";
import ShowOrderList from "../components/user/order/ShowOrderList.vue";
import ShowSingleOrder from "../components/user/order/ShowSingleOrder.vue";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      redirect: "/showOrderList"
    },
    {
      path: "/showOrderList",
      name: "ShowOrderList",
      component: ShowOrderList
    },
    {
      path: "/showSingleOrder",
      name: "ShowSingleOrder",
      component: ShowSingleOrder
    }
  ]
});
